package com.svse.designPattern.structure.adapter.adapter;

import com.svse.designPattern.structure.adapter.adaptee.OpticalMotor;
import com.svse.designPattern.structure.adapter.service.Motor;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Copyright 上海危网信息科技有限公司版权所有
 * @company wwsoft
 * @Date 2020/7/31 9:17
 */
public class OpticalAdapter implements Motor {

    private OpticalMotor opticalMotor;

    public OpticalAdapter() {
        this.opticalMotor = new OpticalMotor();
    }

    @Override
    public void drive() {
        opticalMotor.opticalDrive();
    }
}
